package encapsulation;

	public class LapTop {
		
		private String make;
	    private String 	modelNo;
	    private	String 	systemType = "Windows 32 bit";
	    private	String 	color;
	    private	boolean wifiConnect = true;
	    private	boolean started;
	    private int     memoryRAM;
	   
	   
	    //Constructor Laptop
	    
	    LapTop(String make,String modelNo,String systemType,int memoryRAM)
	    {
	    	this.make = make;
	    	this.modelNo=modelNo;
	    	this.systemType=systemType;
	    	this.memoryRAM=memoryRAM;
	    	
	    }
	    
	  
		// method 1- Starting the laptop
		void start()	 
		 {
			if(started= true)
			{
				System.out.println(" System has started.");
			}
			else
			{
				System.out.println("System has not started.");
			}
		  }
		 
		 // method2  increaseMemory will increase current Memory.Returning the CurrentMemory value after increasing the memory.
		 int increaseMemory(int howmuchMemory)	 
		 {
			 if (howmuchMemory >0)
			 {
				 this.memoryRAM = memoryRAM + howmuchMemory;		
				  }
			 return memoryRAM;
		 }
		 	
		 // method3  find out if the wifi is connected or not
		 void browse()
		 {
			 if (wifiConnect == true)
			 {
				System.out.println("Network has connected,You can browse now.");
			 }
			 
			 else
				 
			 {
				 System.out.println("Network has not connected,You can't browse."); 
			 }
		 }
		
		 
		 // method4 to give instructions to install JDK software according to system type.
		 
		 void installingJdkSoftware()
		 		 {	 
			 
			        
				if (systemType =="Windows 32 bit")
				{
					System.out.println("Install JDK 1.7 for Windows 32 bit O/S .System Type is  " + systemType);
				}
				else if (systemType =="Windows 64 bit")
				{
					System.out.println("Install JDK 1.7 for Windows 64 bit  O/S System Type is  " + systemType);
				}
				
				else if (systemType =="Mac")
				{
					System.out.println("Install JDK 1.7 for Mac O/S System Type is  " + systemType);
				}
				else

				{
					System.out.println("Invalid System Type System  " + systemType);
				}
		 }


// Getting the info 

		public boolean iswifiConnect() {
			return wifiConnect;
		}

		public void setWifiConnect(boolean wifiConnect) {
			this.wifiConnect = wifiConnect;
		}

		public boolean isStarted() {
			return started;
		}

		public void setIsStarted(boolean started) {
			this.started = started;
		}

	
		public String getMake() {
			return make;
		}

		public String getModelNo() {
			return modelNo;
		}

		public String getSystemType() {
			return systemType;
		}

		public int getMemoryRAM() {
			return memoryRAM;
		}
	}


			 
	
	

